package br.com.amadeus.android.graphics;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.webkit.WebView;
import android.widget.TextView;

public class Pizza extends Activity
{
	private String tricolores;
	private String alviRubros;
	private String rubroNegros;
	private Intent intent;
	
	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		TextView t = new TextView(this);
		intent = getIntent();
		tricolores = intent.getStringExtra("t");
		alviRubros = intent.getStringExtra("n");
		rubroNegros = intent.getStringExtra("s");
				
		final WebView googleChartView = new WebView(this);
		setContentView(googleChartView);
		String url = "http://chart.apis.google.com/chart?cht=p3&chs=300x200&chtt=Torcidas%20de%20Pernambuco" +
				"&chco=FF0000|00FF00|0000FF&chdl=Santa|Sport|Na%C3%BAtico&chd=t:" + tricolores + "," + alviRubros + "," + rubroNegros;
		googleChartView.loadUrl(url);
	}
}
